<?php
/**
 * Used to display archives by tags.
 * 
 * @package Behold
 * @since Behold 1.0.0
 */
?>

<?php 
	get_header(); 
	if ( have_posts() ) :
		printf( __( '<h3 id="archive-type-title">Posts tagged with: %s </h3>', 'Behold' ), '<span>' . single_tag_title( 'Behold', false ) . '</span>' );
		behold_post_navigation( "nav-above" );
	endif;
?>


<div id="main" class="group">
	<div id="posts-container">		
		<?php
			while (have_posts()) :
				the_post();		
				if ( get_post_format() == "gallery" ):
						get_template_part( 'content', 'gallery' );
					else:
						get_template_part( 'content' );
				endif;
		   endwhile;
		?>
	</div>	<!-- closing of posts-container> -->
	
	<?php
		if ( have_posts () ):
			behold_post_navigation( "nav-below" );
		endif;
	?>
	
</div><!-- closing of main -->

<?php
	get_sidebar('right');
	get_footer(); 
?>
